<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style>
.btn{
	 background-color:#FFF;
	 border:1px solid #CDCDCD;
	 height:24px; width:70px;
	 margin-top: 6px;
} 
.txt{
	 height:22px; border:1px solid #cdcdcd; width:180px;
}
.file{
  position:absolute;
  top:0;left:40px;
  height:24px;
  filter:alpha(opacity:0);opacity: 0;width:260px;
 }

</style>
<script type="text/javascript">

function setTimeTo1(value){
	$("#filter_and_yearAndMonth1_LE_T").val(value) ;
}
function getLastDay(year,month) {  
 var new_year = year;    //取当前的年份
 var new_month = month++;//取下一个月的第一天，方便计算（最后一天不固定）
 if(month>12)            //如果当前大于12月，则年份转到下一年  
{  
  new_month -=12;        //月份减  
  new_year++;            //年份增  
 }  
 var new_date = new Date(new_year,new_month,1);                //取当年当月中的第一天  
 return (new Date(new_date.getTime()-1000*60*60*24)).getDate();//获取当月最后一天日期  
}  

</script>
<div class="pageContent">
	                                
     <div id="resultBox"></div>
	<form enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this, navTabAjaxDone);" action="${path }/resource/dissertationAction!saveDissertation.action" method="post" novalidate="novalidate">
		<input type="hidden" name="navTabId" value="${navTabId}"/>
		<div class="pageFormContent" layoutH="85">
		<div class="tip"><span>添加论文信息：</span></div>

			<p>
				<label>标题：</label>
				 <input type="text" name="dissertation.title" class="required"   maxlength="50" size="30" />
			</p>
			<p>
				<label>作者：</label>
				 <input type="text" name="dissertation.author" class="required"   maxlength="50" size="30" />
			</p>
			 <p>
			<label>年份：</label>
			<input type="text" class="wDate required" name="dissertation.disYear" id = "filter_and_yearAndMonth_LE_T" 
				  readonly="readonly"
				onclick="WdatePicker({dateFmt:'yyyy-MM'})" onchange="setTimeTo1(this.value)" />
			</p> 
			<p>
				<label>论文分类：</label>
				<select class="required" name="dissertation.disType" rel="iselect" loadUrl="${path}/hpin/sysDictType!treeRegion.action?defaultID=10517">
					
				</select>
			</p>
			
		 
			<div class="tip"><span>内容：</span></div>
		  	  	<div>
			  		<textarea class="editor" name="dissertation.content" rows="20" cols="110"   tools="full" skin="vista" 
		  				upImgUrl="${path}/servlet/xheditorUpload?flag=img" upImgExt="jpg,jpeg,gif,png"></textarea>
        	</div>	
			 <div class="tip"><span>附件上传：</span></div>	
			 <p class="attachment">
	          <label>附件：</label>
	          <hpin:attachment name="attachment" property="dissertation.attachment" scope="request" idField="dissertation.attachment" appCode="publics" />
	         </p> 
	         <div class="tip"><span>备注：</span></div>	
	        <p>
				<label>备注：</label>
				<textarea cols="35" rows="2" name="dissertation.remark" style="width:570px;"></textarea>
			</p>
			
   
			</div>
			 <div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" onclick="doit();">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="reset">重置</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
